import subHome from './subHome'
import {
  LOAD_DATA
} from './actions'

export default {
  namespaced: false,
  modules: { // 嵌套模块
    subHome
  },
  state: {
    name: 'home'
  },
  getters: {},
  mutations: {
    [LOAD_DATA] (state, params) {
      console.log('LOAD_DATA')
    }
  },
  actions: {
    async [LOAD_DATA] ({ commit }, params) {
      commit(LOAD_DATA)
    }
  }
}
